package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._19命令模式._1基本代码;

public class Test {

    public static void main(String[] args) {

        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);
        Invoker invoker = new Invoker();

        invoker.setCommand(command);
        invoker.executeCommand();
    }
}








